package com.kingyun.gpsinspection.purificationservice.dao.mapper;

import com.kingyun.gpsinspection.purificationservice.facade.model.DutyRecords;
import com.kingyun.gpsinspection.purificationservice.facade.model.DutyRecordsVo;

import java.util.List;

public interface DutyRecordsMapper {
    int deleteByPrimaryKey(String id);

    int insert(DutyRecords record);

    int insertSelective(DutyRecords record);

    DutyRecords selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(DutyRecords record);

    int updateByPrimaryKey(DutyRecords record);

    /**
     * 查询列表总条数
     *
     * @param dutyRecordsVo
     * @return
     */
    Integer queryCount(DutyRecordsVo dutyRecordsVo);

    /**
     * 查询列表分页数据
     *
     * @param dutyRecordsVo
     */
    List<DutyRecords> queryList(DutyRecordsVo dutyRecordsVo);

    /**
     * 插入多条记录
     *
     * @param list
     */
    int insertSelectives(List<DutyRecords> list);

    /**
     * 查询还没有创建过的值班记录
     */
    List<DutyRecords> queryNoCreateRows();
}